package com.ramble.buildingservice.api;

import com.ramble.buildingservice.api.dto.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "user-service")
public interface UserServiceApiClient {

    @GetMapping("/user/{id}")
    UserDto getUser(@PathVariable("id") Long id);
}
